package cc.mrbird.febs.power.service.impl;

import cc.mrbird.febs.power.entity.OrgBindAccountInfo;
import cc.mrbird.febs.power.dao.OrgBindAccountInfoMapper;
import cc.mrbird.febs.power.service.IOrgBindAccountInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author MrBird
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OrgBindAccountInfoServiceImpl extends ServiceImpl<OrgBindAccountInfoMapper, OrgBindAccountInfo> implements IOrgBindAccountInfoService {

    private final OrgBindAccountInfoMapper orgBindAccountInfoMapper;

    @Override
    public List<Map> getOrgByAccountId(Integer accountId) {
        return orgBindAccountInfoMapper.getOrgByAccountId(accountId);
    }
}
